function getAllNews(method) {
  let res = null;
  switch (method) {
    case "GET":
      res = {
        "count": 6,
        "list": [
          {
            "newsId": 11,
            "title": "测试",
            "content": "测试",
            "userId": 0,
            "image": "http://81.69.0.39:8999/unistrong/a.jpg",
            "type": 0,
            "isRelease": false,
            "createDate": "2022-03-30 16:42:30",
            "updateDate": null,
            "releaseDate": null
          },
          {
            "newsId": 9,
            "title": "反诈新闻",
            "content": "反诈新闻测试",
            "userId": 0,
            "image": "http://81.69.0.39:8999/unistrong/a.jpg",
            "type": 3,
            "isRelease": false,
            "createDate": "2022-03-14 09:26:14",
            "updateDate": null,
            "releaseDate": null
          },
          {
            "newsId": 8,
            "title": "义警风采",
            "content": "义警风采测试",
            "userId": 1,
            "image": "http://81.69.0.39:8999/unistrong/c.jpg",
            "type": 4,
            "isRelease": false,
            "createDate": "2022-03-13 23:01:13",
            "updateDate": null,
            "releaseDate": null
          },
          {
            "newsId": 7,
            "title": "新闻",
            "content": "新闻测试",
            "userId": 1,
            "image": "http://81.69.0.39:8999/unistrong/a.jpg",
            "type": 0,
            "isRelease": false,
            "createDate": "2022-03-13 19:28:13",
            "updateDate": null,
            "releaseDate": null
          },
          {
            "newsId": 2,
            "title": "专题新闻",
            "content": "专题新闻测试",
            "userId": 1,
            "image": "http://81.69.0.39:8999/unistrong/a.jpg",
            "type": 1,
            "isRelease": true,
            "createDate": "2022-03-13 19:22:13",
            "updateDate": null,
            "releaseDate": "2022-03-13 19:22:13"
          },
          {
            "newsId": 1,
            "title": "更新更新",
            "content": "更新测试",
            "userId": 0,
            "image": "http://81.69.0.39:8999/unistrong/a.jpg",
            "type": 0,
            "isRelease": false,
            "createDate": "2022-03-13 19:21:13",
            "updateDate": "2022-03-30 17:54:30",
            "releaseDate": null
          },
          {
            "newsId": 1,
            "title": "更新更新",
            "content": "更新测试",
            "userId": 0,
            "image": "http://81.69.0.39:8999/unistrong/a.jpg",
            "type": 0,
            "isRelease": false,
            "createDate": "2022-03-13 19:21:13",
            "updateDate": "2022-03-30 17:54:30",
            "releaseDate": null
          },
          {
            "newsId": 1,
            "title": "更新更新",
            "content": "更新测试",
            "userId": 0,
            "image": "http://81.69.0.39:8999/unistrong/a.jpg",
            "type": 0,
            "isRelease": false,
            "createDate": "2022-03-13 19:21:13",
            "updateDate": "2022-03-30 17:54:30",
            "releaseDate": null
          },
          {
            "newsId": 1,
            "title": "更新更新",
            "content": "更新测试",
            "userId": 0,
            "image": "http://81.69.0.39:8999/unistrong/a.jpg",
            "type": 0,
            "isRelease": false,
            "createDate": "2022-03-13 19:21:13",
            "updateDate": "2022-03-30 17:54:30",
            "releaseDate": null
          },
          {
            "newsId": 1,
            "title": "更新更新",
            "content": "更新测试",
            "userId": 0,
            "image": "http://81.69.0.39:8999/unistrong/a.jpg",
            "type": 0,
            "isRelease": false,
            "createDate": "2022-03-13 19:21:13",
            "updateDate": "2022-03-30 17:54:30",
            "releaseDate": null
          },
          {
            "newsId": 1,
            "title": "更新更新",
            "content": "更新测试",
            "userId": 0,
            "image": "http://81.69.0.39:8999/unistrong/a.jpg",
            "type": 0,
            "isRelease": false,
            "createDate": "2022-03-13 19:21:13",
            "updateDate": "2022-03-30 17:54:30",
            "releaseDate": null
          }
        ]
      };
      break;
    default:
      res = null;
  }
  return res;
}

module.exports = getAllNews;
